package cn.mcch.investigator.viewdelegate.impl;

import android.view.View;
import android.widget.RadioGroup;

import cn.mcch.investigator.R;
import cn.mcch.investigator.listener.OnCommonClickListener;
import cn.mcch.investigator.viewdelegate.ICreateTaskViewDelegate;
import cn.mcch.investigator.viewdelegate.BaseViewDelegate;

/**
 * Created by Administrator on 2016/12/16.
 */
public class CreateTaskViewDelegateImpl extends BaseViewDelegate implements ICreateTaskViewDelegate {

    @Override
    public void initEventsListener(OnCommonClickListener l) {
        setOnClickListener(l, R.id.sb_choose_car_code, R.id.sb_choose_car_type, R.id.sb_order_attr,
                R.id.sb_risk_area_urban, R.id.sb_risk_area_district, R.id.sb_intention_area_urban,
                R.id.sb_intention_area_district, R.id.sb_order_price, R.id.sb_order_style,
                R.id.sb_yes_rescue, R.id.sb_cancel_rescue, R.id.sb_order_Export, R.id.tv_more_recommend);
//        if (findViewById(R.id.se_car_type) != null)
//            findViewById(R.id.se_car_type).setOnFocusChangeListener((View.OnFocusChangeListener) l);
        if (findViewById(R.id.rg_is_bigcase) != null)
            ((RadioGroup)findViewById(R.id.rg_is_bigcase)).setOnCheckedChangeListener((RadioGroup.OnCheckedChangeListener)l);
    }
}
